<template>
  <div class="content" v-if="loading">
      <a-spin class="spin" size="large" tip="玩命加载...">
        <div>

        </div>
      </a-spin>
    </div>
</template>

<script>
  export default {
    data: () => ({
      loading: false
    }),
    methods: {
      start () {
        this.loading = true
      },
      finish () {
        this.loading = false
      }
    }
  }
</script>

<style scoped>
.content {
  border: 1px solid #91d5ff;
  background-color: #e6f7ff;
  padding: 30px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
}
.spin {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
</style>
